export class ObjHandle<T> {

    static NULL:ObjHandle<null> = new ObjHandle(null);

    instance: T;
    constructor(item: T)
    {
        this.instance = item;
    }

    isValid():boolean {
        return this.instance != null;
    }

    release(){
        this.instance = null;
    }
}
